import { get, post } from "../../../utils/request";
import { type ListParams, type ListResult, type AddParams, type ListData } from "./type";

export const getServiceList = (data: ListParams) => {
  return get<ListParams, ListResult>("/api/nursingService/list", data);
};

export const addService = (data: AddParams) => {
  return post<AddParams, ListData>("/api/nursingService/add", data);
};
